package com.h3c.ptability.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.h3c.ptability.annotation.FieldCheck;
import com.h3c.ptability.enums.CheckType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 *  实体
 *
 * @author h24002
 * @date 2022-10-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("pt_user_dept_month")
public class PtUserDeptMonth {

    /**
     * 应用ID
     */
    @TableId("app_id")
    @FieldCheck(type = CheckType.hasText, desc = "应用编码")
    private String appId;

    /**
     * 部门编码
     */
    @TableField("dept_id")
    @FieldCheck(type = CheckType.notNull, desc = "部门编码")
    private Integer deptId;

    /**
     * 年月度
     */
    @TableField("date_id")
    @FieldCheck(type = CheckType.notNull, desc = "维护日期")
    private Integer dateId;

    /**
     * 用户工号
     */
    @TableField("user_id")
    @FieldCheck(type = CheckType.hasText, desc = "用户ID")
    private String userId;

    /**
     * 创建时间
     */
    @TableField("operate_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="Asia/Shanghai")
    private Date operateTime;

    /**
     * 创建人工号
     */
    @TableField("operator_id")
    private String operatorId;

}
